package org.csu.newpetstoreback.service;

import org.csu.newpetstoreback.common.CommonResponse;
import org.csu.newpetstoreback.entity.Cart;
import org.csu.newpetstoreback.vo.CartItem;
import org.csu.newpetstoreback.vo.ItemVO;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

public interface CartService {

   CommonResponse<List<CartItem>> getCartItems(String username);

   CommonResponse<List<CartItem>> addCartItem(String username, String itemId,int increment);

   CommonResponse<List<CartItem>> removeItemFromCart(String username, String itemId);

   CommonResponse<CartItem> updateCartItemQuantity(String username, String itemId,int quantity);

  CommonResponse<String> deleteAllCartItems( String username);

}
